package fr.umlv.m2.jee.portailEtudiant.service;

import fr.umlv.m2.jee.portailEtudiant.persistence.Course;
import fr.umlv.m2.jee.portailEtudiant.persistence.Formation;

import java.io.Serializable;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 18/04/11
 * Time: 21:27
 * To change this template use File | Settings | File Templates.
 */
public class DisplayFormation implements Serializable {

    private Formation formation;

    public DisplayFormation(Formation formation) {
        this.formation = formation;
    }

    public Formation getFormation() {
        return formation;
    }

    public void setFormation(Formation formation) {
        this.formation = formation;
    }


    public long getId() {
        return formation.getIdFormation();
    }
    public String getName() {
           return formation.getName();
    }

    public List< Course > getCourse() {
           return formation.getCourse();
    }

    public void setName(String name){
        this.formation.setName(name);
    }


}
